<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of m_provinces
 *
 * @author Tuyet
 */
class M_provinces extends CI_Model {

    public function __construct() {
        parent::__construct();
        $this->load->database();
    }

    public function allprovinces() {
        $query = $this->db->get('provinces');
        $result = $query->result();
        return $result;
    }
    public function alldistricts() {
        $query = $this->db->get('districts');
        $result = $query->result();
        return $result;
    }
    

}

?>
